//
//  StoryView.m
//  PetTown
//
//  Created by lanou3g on 15/6/2.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "StoryView.h"
#define LHeight self.frame.size.height
#define LWidth  self.frame.size.width
@implementation StoryView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
        [self setSubViews];
        
    }
    return self;
}

- (void)setSubViews{
    
    //新建scrollView
    self.storyScrollView  = [[UIScrollView alloc] initWithFrame:CGRectMake(0, LHeight/3.0f-20,LWidth, LHeight/2.5)];
    _storyScrollView.pagingEnabled = NO;
    _storyScrollView.bounces = NO;
    //隐藏滚动条
    _storyScrollView.showsHorizontalScrollIndicator = NO;
    //背景颜色
//   _storyScrollView.backgroundColor = [UIColor colorWithRed:251/256.0 green:228/256.0 blue:113/256.0 alpha:1];

    

    self.textLabel = [[UILabel alloc] init];
    [_storyScrollView addSubview:_textLabel];
    self.label2 = [[UILabel alloc]init];
    [_storyScrollView addSubview:_label2];
   
 
       [self addSubview:_storyScrollView];    

}





@end
